home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / emacs.1 < prev    next >
Text File  |  1995-07-25  |  23KB  |  529 lines

  1.  
  2.  
  3.  
  4.      EEEEMMMMAAAACCCCSSSS((((1111))))        XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((1111999999990000 NNNNoooovvvveeeemmmmbbbbeeeerrrr 11113333))))        EEEEMMMMAAAACCCCSSSS((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           emacs - GNU project Emacs
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           eeeemmmmaaaaccccssss [ _c_o_m_m_a_n_d-_l_i_n_e _s_w_i_t_c_h_e_s ] [ _f_i_l_e_s ... ]
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.           _G_N_U _E_m_a_c_s is a new version of _E_m_a_c_s, written by the author
  16.           of the original (PDP-10) _E_m_a_c_s, Richard Stallman. Its user
  17.           functionality encompasses everything other _E_m_a_c_s editors do,
  18.           and it is easily extensible since its editing commands are
  19.           written in Lisp.
  20.  
  21.           _E_m_a_c_s has an extensive interactive help facility, but the
  22.           facility assumes that you know how to manipulate _E_m_a_c_s
  23.           windows and buffers.  CTRL-h (backspace or CTRL-h) enters
  24.           the Help facility.  Help Tutorial (CTRL-h t) requests an
  25.           interactive tutorial which can teach beginners the
  26.           fundamentals of _E_m_a_c_s in a few minutes.  Help Apropos
  27.           (CTRL-h a) helps you find a command given its functionality,
  28.           Help Character (CTRL-h c) describes a given character's
  29.           effect, and Help Function (CTRL-h f) describes a given Lisp
  30.           function specified by name.
  31.  
  32.           _E_m_a_c_s'_s Undo can undo several steps of modification to your
  33.           buffers, so it is easy to recover from editing mistakes.
  34.  
  35.           _G_N_U _E_m_a_c_s'_s many special packages handle mail reading
  36.           (RMail) and sending (Mail), outline editing (Outline),
  37.           compiling (Compile), running subshells within _E_m_a_c_s windows
  38.           (Shell), running a Lisp read-eval-print loop (Lisp-
  39.           Interaction-Mode), and automated psychotherapy (Doctor).
  40.  
  41.           There is an extensive reference manual, but users of other
  42.           Emacses should have little trouble adapting even without a
  43.           copy.  Users new to _E_m_a_c_s will be able to use basic features
  44.           fairly rapidly by studying the tutorial and using the self-
  45.           documentation features.
  46.  
  47.           Emacs Options
  48.  
  49.           The following options are of general interest:
  50.  
  51.           _f_i_l_e    Edit _f_i_l_e.
  52.  
  53.           ++++_n_u_m_b_e_r Go to the line specified by _n_u_m_b_e_r (do not insert a
  54.                   space between the "+" sign and the number).
  55.  
  56.           ----qqqq      Do not load an init file.
  57.  
  58.           ----uuuu _u_s_e_r Load _u_s_e_r'_s init file.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 7/7/94)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      EEEEMMMMAAAACCCCSSSS((((1111))))        XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((1111999999990000 NNNNoooovvvveeeemmmmbbbbeeeerrrr 11113333))))        EEEEMMMMAAAACCCCSSSS((((1111))))
  71.  
  72.  
  73.  
  74.           ----tttt _f_i_l_e Use specified _f_i_l_e as the terminal instead of using
  75.                   stdin/stdout.  This must be the first argument
  76.                   specified in the command line.
  77.  
  78.           The following options are lisp-oriented (these options are
  79.           processed in the order encountered):
  80.  
  81.           ----ffff _f_u_n_c_t_i_o_n
  82.                   Execute the lisp function _f_u_n_c_t_i_o_n.
  83.  
  84.           ----llll _f_i_l_e Load the lisp code in the file _f_i_l_e.
  85.  
  86.           The following options are useful when running _E_m_a_c_s as a
  87.           batch editor:
  88.  
  89.           ----bbbbaaaattttcccchhhh _c_o_m_m_a_n_d_f_i_l_e
  90.                   Edit in batch mode using the commands found in
  91.                   _c_o_m_m_a_n_d_f_i_l_e. The editor will send messages to
  92.                   stdout.  This option must be the first in the
  93.                   argument list.
  94.  
  95.           ----kkkkiiiillllllll   Exit _E_m_a_c_s while in batch mode.
  96.  
  97.           Using Emacs with X
  98.  
  99.           _E_m_a_c_s has been tailored to work well with the X window
  100.           system.  If you run _E_m_a_c_s from under X windows, it will
  101.           create its own X window to display in.  You will probably
  102.           want to start the editor as a background process so that you
  103.           can continue using your original window.
  104.  
  105.           _E_m_a_c_s can be started with the following X switches:
  106.  
  107.           ----rrrrnnnn _n_a_m_e
  108.                   Specifies the program name which should be used when
  109.                   looking up defaults in the user's X resources.  This
  110.                   must be the first option specified in the command
  111.                   line.
  112.  
  113.           ----nnnnaaaammmmeeee _n_a_m_e
  114.                   Specifies the name which should be assigned to the
  115.                   _E_m_a_c_s window.
  116.  
  117.           ----rrrr      Display the _E_m_a_c_s window in reverse video.
  118.  
  119.           ----iiii      Use the "kitchen sink" bitmap icon when iconifying
  120.                   the _E_m_a_c_s window.
  121.  
  122.           ----ffffoooonnnntttt _f_o_n_t, ----ffffnnnn _f_o_n_t
  123.                   Set the _E_m_a_c_s window's font to that specified by
  124.                   _f_o_n_t. You will find the various _X fonts in the
  125.                   /_u_s_r/_l_i_b/_X_1_1/_f_o_n_t_s directory.  Note that _E_m_a_c_s will
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 7/7/94)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      EEEEMMMMAAAACCCCSSSS((((1111))))        XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((1111999999990000 NNNNoooovvvveeeemmmmbbbbeeeerrrr 11113333))))        EEEEMMMMAAAACCCCSSSS((((1111))))
  137.  
  138.  
  139.  
  140.                   only accept fixed width fonts.  Under the X11
  141.                   Release 4 font-naming conventions, any font with the
  142.                   value "m" or "c" in the eleventh field of the font
  143.                   name is a fixed width font.  Furthermore, fonts
  144.                   whose name are of the form _w_i_d_t_hx_h_e_i_g_h_t are
  145.                   generally fixed width, as is the font _f_i_x_e_d.  See
  146.                   _x_l_s_f_o_n_t_s(1) for more information.
  147.  
  148.                   When you specify a font, be sure to put a space
  149.                   between the switch and the font name.
  150.  
  151.           ----bbbb _p_i_x_e_l_s
  152.                   Set the _E_m_a_c_s window's border width to the number of
  153.                   pixels specified by _p_i_x_e_l_s. Defaults to one pixel on
  154.                   each side of the window.
  155.  
  156.           ----iiiibbbb _p_i_x_e_l_s
  157.                   Set the window's internal border width to the number
  158.                   of pixels specified by _p_i_x_e_l_s. Defaults to one pixel
  159.                   of padding on each side of the window.
  160.  
  161.           ----ggggeeeeoooommmmeeeettttrrrryyyy _g_e_o_m_e_t_r_y
  162.                   Set the _E_m_a_c_s window's width, height, and position
  163.                   as specified.  The geometry specification is in the
  164.                   standard X format; see _X(1) for more information.
  165.                   The width and height are specified in characters;
  166.                   the default is 80 by 24.
  167.  
  168.           ----ffffgggg _c_o_l_o_r
  169.                   On color displays, sets the color of the text.
  170.  
  171.                   See the file /_u_s_r/_l_i_b/_X_1_1/_r_g_b._t_x_t for a list of
  172.                   valid color names.
  173.  
  174.           ----bbbbgggg _c_o_l_o_r
  175.                   On color displays, sets the color of the window's
  176.                   background.
  177.  
  178.           ----bbbbdddd _c_o_l_o_r
  179.                   On color displays, sets the color of the window's
  180.                   border.
  181.  
  182.           ----ccccrrrr _c_o_l_o_r
  183.                   On color displays, sets the color of the window's
  184.                   text cursor.
  185.  
  186.           ----mmmmssss _c_o_l_o_r
  187.                   On color displays, sets the color of the window's
  188.                   mouse cursor.
  189.  
  190.           ----dddd _d_i_s_p_l_a_y_n_a_m_e, ----ddddiiiissssppppllllaaaayyyy _d_i_s_p_l_a_y_n_a_m_e
  191.                   Create the _E_m_a_c_s window on the display specified by
  192.  
  193.  
  194.  
  195.      Page 3                                           (printed 7/7/94)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      EEEEMMMMAAAACCCCSSSS((((1111))))        XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((1111999999990000 NNNNoooovvvveeeemmmmbbbbeeeerrrr 11113333))))        EEEEMMMMAAAACCCCSSSS((((1111))))
  203.  
  204.  
  205.  
  206.                   _d_i_s_p_l_a_y_n_a_m_e.  Must be the first option specified in
  207.                   the command line.
  208.  
  209.           ----nnnnwwww     Tells _E_m_a_c_s not to use its special interface to X.
  210.                   If you use this switch when invoking _E_m_a_c_s from an
  211.                   _x_t_e_r_m(1) window, display is done in that window.
  212.                   This must be the first option specified in the
  213.                   command line.
  214.  
  215.           You can set _X default values for your _E_m_a_c_s windows in your
  216.           ._X_r_e_s_o_u_r_c_e_s file (see _x_r_d_b(1)).  Use the following format:
  217.  
  218.                emacs.keyword:value
  219.  
  220.           where _v_a_l_u_e specifies the default value of _k_e_y_w_o_r_d. _E_m_a_c_s
  221.           lets you set default values for the following keywords:
  222.  
  223.           ffffoooonnnntttt ((((class FFFFoooonnnntttt))))
  224.                   Sets the window's text font.
  225.  
  226.           rrrreeeevvvveeeerrrrsssseeeeVVVViiiiddddeeeeoooo ((((class RRRReeeevvvveeeerrrrsssseeeeVVVViiiiddddeeeeoooo))))
  227.                   If _r_e_v_e_r_s_e_V_i_d_e_o'_s value is set to _o_n, the window
  228.                   will be displayed in reverse video.
  229.  
  230.           bbbbiiiittttmmmmaaaappppIIIIccccoooonnnn ((((class BBBBiiiittttmmmmaaaappppIIIIccccoooonnnn))))
  231.                   If _b_i_t_m_a_p_I_c_o_n'_s value is set to _o_n, the window will
  232.                   iconify into the "kitchen sink."
  233.  
  234.           bbbboooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh ((((class BBBBoooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh))))
  235.                   Sets the window's border width in pixels.
  236.  
  237.           iiiinnnntttteeeerrrrnnnnaaaallllBBBBoooorrrrddddeeeerrrr ((((class BBBBoooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh))))
  238.                   Sets the window's internal border width in pixels.
  239.  
  240.           ffffoooorrrreeeeggggrrrroooouuuunnnndddd ((((class FFFFoooorrrreeeeggggrrrroooouuuunnnndddd))))
  241.                   For color displays, sets the window's text color.
  242.  
  243.           bbbbaaaacccckkkkggggrrrroooouuuunnnndddd ((((class BBBBaaaacccckkkkggggrrrroooouuuunnnndddd))))
  244.                   For color displays, sets the window's background
  245.                   color.
  246.  
  247.           bbbboooorrrrddddeeeerrrrCCCCoooolllloooorrrr ((((class BBBBoooorrrrddddeeeerrrrCCCCoooolllloooorrrr))))
  248.                   For color displays, sets the color of the window's
  249.                   border.
  250.  
  251.           ccccuuuurrrrssssoooorrrrCCCCoooolllloooorrrr ((((class FFFFoooorrrreeeeggggrrrroooouuuunnnndddd))))
  252.                   For color displays, sets the color of the window's
  253.                   text cursor.
  254.  
  255.           ppppooooiiiinnnntttteeeerrrrCCCCoooolllloooorrrr ((((class FFFFoooorrrreeeeggggrrrroooouuuunnnndddd))))
  256.                   For color displays, sets the color of the window's
  257.                   mouse cursor.
  258.  
  259.  
  260.  
  261.      Page 4                                           (printed 7/7/94)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      EEEEMMMMAAAACCCCSSSS((((1111))))        XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((1111999999990000 NNNNoooovvvveeeemmmmbbbbeeeerrrr 11113333))))        EEEEMMMMAAAACCCCSSSS((((1111))))
  269.  
  270.  
  271.  
  272.           ggggeeeeoooommmmeeeettttrrrryyyy ((((class GGGGeeeeoooommmmeeeettttrrrryyyy))))
  273.                   Sets the geometry of the _E_m_a_c_s window (as described
  274.                   above).
  275.  
  276.           ttttiiiittttlllleeee ((((class TTTTiiiittttlllleeee))))
  277.                   Sets the title of the _E_m_a_c_s window.
  278.  
  279.           iiiiccccoooonnnnNNNNaaaammmmeeee ((((class TTTTiiiittttlllleeee))))
  280.                   Sets the icon name for the _E_m_a_c_s window icon.
  281.  
  282.           If you try to set color values while using a black and white
  283.           display, the window's characteristics will default as
  284.           follows: the foreground color will be set to black, the
  285.           background color will be set to white, the border color will
  286.           be set to grey, and the text and mouse cursors will be set
  287.           to black.
  288.  
  289.           Using the Mouse
  290.  
  291.           The following lists the mouse button bindings for the _E_m_a_c_s
  292.           window under X11.
  293.  
  294.           MOUSE BUTTON         FUNCTION
  295.           left                 Set point.
  296.           middle               Paste text.
  297.           right                Cut text into X cut buffer.
  298.           SHIFT-middle         Cut text into X cut buffer.
  299.           SHIFT-right          Paste text.
  300.           CTRL-middle          Cut text into X cut buffer and kill it.
  301.           CTRL-right           Select this window, then split it into
  302.                                two windows.  Same as typing CTRL-x 2.
  303.           CTRL-SHIFT-left      X buffer menu--hold the buttons and
  304.                                keys down, wait for menu to appear,
  305.                                select buffer, and release.  Move mouse
  306.                                out of menu and release to cancel.
  307.           CTRL-SHIFT-middle    X help menu--pop up index card menu for
  308.                                Emacs help.
  309.           CTRL-SHIFT-right     Select window with mouse, and delete
  310.                                all other windows.  Same as typing
  311.                                CTRL-x 1.
  312.  
  313.      MMMMAAAANNNNUUUUAAAALLLLSSSS
  314.           You can order printed copies of the GNU Emacs Manual for
  315.           $20.00/copy postpaid from the Free Software Foundation,
  316.           which develops GNU software (contact them for quantity
  317.           prices on the manual).  Their address is:
  318.               Free Software Foundation
  319.               675 Mass Ave.
  320.               Cambridge, MA 02139
  321.           Your local Emacs maintainer might also have copies
  322.           available.  As with all software and publications from FSF,
  323.           everyone is permitted to make and distribute copies of the
  324.  
  325.  
  326.  
  327.      Page 5                                           (printed 7/7/94)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      EEEEMMMMAAAACCCCSSSS((((1111))))        XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((1111999999990000 NNNNoooovvvveeeemmmmbbbbeeeerrrr 11113333))))        EEEEMMMMAAAACCCCSSSS((((1111))))
  335.  
  336.  
  337.  
  338.           Emacs manual.  The TeX source to the manual is also included
  339.           in the Emacs source distribution.
  340.  
  341.      FFFFIIIILLLLEEEESSSS
  342.           /usr/local/info - files for the Info documentation browser
  343.           (a subsystem of Emacs) to refer to.  Currently not much of
  344.           Unix is documented here, but the complete text of the Emacs
  345.           reference manual is included in a convenient tree structured
  346.           form.
  347.  
  348.           /usr/local/lib/emacs/$VERSION/src - C source files and
  349.           object files
  350.  
  351.           /usr/local/lib/emacs/$VERSION/lisp - Lisp source files and
  352.           compiled files that define most editing commands.  Some are
  353.           preloaded; others are autoloaded from this directory when
  354.           used.
  355.  
  356.           /usr/local/lib/emacs/$VERSION/etc - various programs that
  357.           are used with GNU Emacs, and some files of information.
  358.  
  359.           /usr/local/lib/emacs/$VERSION/etc/DOC.* - contains the
  360.           documentation strings for the Lisp primitives and preloaded
  361.           Lisp functions of GNU Emacs.  They are stored here to reduce
  362.           the size of Emacs proper.
  363.  
  364.           /usr/local/lib/emacs/$VERSION/etc/DIFF discusses GNU Emacs
  365.           vs. Twenex Emacs;
  366.           /usr/local/lib/emacs/$VERSION/etc/CCADIFF discusses GNU
  367.           Emacs vs. CCA Emacs;
  368.           /usr/local/lib/emacs/$VERSION/etc/GOSDIFF discusses GNU
  369.           Emacs vs. Gosling Emacs.
  370.           /usr/local/lib/emacs/$VERSION/etc/SERVICE lists people
  371.           offering various services to assist users of GNU Emacs,
  372.           including education, troubleshooting, porting and
  373.           customization.
  374.           These files also have information useful to anyone wishing
  375.           to write programs in the Emacs Lisp extension language,
  376.           which has not yet been fully documented.
  377.  
  378.           /usr/local/lib/emacs/lock - holds lock files that are made
  379.           for all files being modified in Emacs, to prevent
  380.           simultaneous modification of one file by two users.
  381.  
  382.           /usr/local/lib/emacs/$VERSION/$ARCHITECTURE/cpp - the GNU
  383.           cpp, needed for building Emacs on certain versions of Unix
  384.           where the standard cpp cannot handle long names for macros.
  385.  
  386.           /usr/lib/X11/rgb.txt - list of valid X color names.
  387.  
  388.      BBBBUUUUGGGGSSSS
  389.           There is a mailing list, bug-gnu-emacs@prep.ai.mit.edu on
  390.  
  391.  
  392.  
  393.      Page 6                                           (printed 7/7/94)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      EEEEMMMMAAAACCCCSSSS((((1111))))        XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((1111999999990000 NNNNoooovvvveeeemmmmbbbbeeeerrrr 11113333))))        EEEEMMMMAAAACCCCSSSS((((1111))))
  401.  
  402.  
  403.  
  404.           the internet (ucbvax!prep.ai.mit.edu!bug-gnu-emacs on
  405.           UUCPnet), for reporting Emacs bugs and fixes.  But before
  406.           reporting something as a bug, please try to be sure that it
  407.           really is a bug, not a misunderstanding or a deliberate
  408.           feature.  We ask you to read the section ``Reporting Emacs
  409.           Bugs'' near the end of the reference manual (or Info system)
  410.           for hints on how and when to report bugs.  Also, include the
  411.           version number of the Emacs you are running in _e_v_e_r_y bug
  412.           report that you send in.
  413.  
  414.           Do not expect a personal answer to a bug report.  The
  415.           purpose of reporting bugs is to get them fixed for everyone
  416.           in the next release, if possible.  For personal assistance,
  417.           look in the SERVICE file (see above) for a list of people
  418.           who offer it.
  419.  
  420.           Please do not send anything but bug reports to this mailing
  421.           list.  Send requests to be added to mailing lists to the
  422.           special list info-gnu-emacs-request@prep.ai.mit.edu (or the
  423.           corresponding UUCP address).  For more information about
  424.           Emacs mailing lists, see the file
  425.           /usr/local/emacs/etc/MAILINGLISTS.  Bugs tend actually to be
  426.           fixed if they can be isolated, so it is in your interest to
  427.           report them in such a way that they can be easily
  428.           reproduced.
  429.  
  430.           Bugs that I know about are: shell will not work with
  431.           programs running in Raw mode on some Unix versions.
  432.  
  433.      UUUUNNNNRRRREEEESSSSTTTTRRRRIIIICCCCTTTTIIIIOOOONNNNSSSS
  434.           _E_m_a_c_s is free; anyone may redistribute copies of _E_m_a_c_s to
  435.           anyone under the terms stated in the _E_m_a_c_s General Public
  436.           License, a copy of which accompanies each copy of _E_m_a_c_s and
  437.           which also appears in the reference manual.
  438.  
  439.           Copies of _E_m_a_c_s may sometimes be received packaged with
  440.           distributions of Unix systems, but it is never included in
  441.           the scope of any license covering those systems.  Such
  442.           inclusion violates the terms on which distribution is
  443.           permitted.  In fact, the primary purpose of the General
  444.           Public License is to prohibit anyone from attaching any
  445.           other restrictions to redistribution of _E_m_a_c_s.
  446.  
  447.           Richard Stallman encourages you to improve and extend _E_m_a_c_s,
  448.           and urges that you contribute your extensions to the GNU
  449.           library.  Eventually GNU (Gnu's Not Unix) will be a complete
  450.           replacement for Berkeley Unix.  Everyone will be able to use
  451.           the GNU system for free.
  452.  
  453.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  454.           X(1), xlsfonts(1), xterm(1), xrdb(1)
  455.  
  456.  
  457.  
  458.  
  459.      Page 7                                           (printed 7/7/94)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      EEEEMMMMAAAACCCCSSSS((((1111))))        XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((1111999999990000 NNNNoooovvvveeeemmmmbbbbeeeerrrr 11113333))))        EEEEMMMMAAAACCCCSSSS((((1111))))
  467.  
  468.  
  469.  
  470.      AAAAUUUUTTTTHHHHOOOORRRRSSSS
  471.           _E_m_a_c_s was written by Richard Stallman and the Free Software
  472.           Foundation.  Joachim Martillo and Robert Krawitz added the X
  473.           features.
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.      Page 8                                           (printed 7/7/94)
  526.  
  527.  
  528.  
  529.